
class Master():

    def __init__(self, name):
        self.name = name

    def func1(self):
        print("会唱戏曲。。。。")

class School():

    def __init__(self, name, num):
        self.name = name
        self.num = num

    def func1(self):
        print("会唱流行歌曲。。。。")

class Student(Master, School):

    def __init__(self, name, num):
        super(Master, self).__init__(name, num)

    def func1(self):
        # 调用最近父类的方法
        super().func1()
        super(Student, self).func1()
        super(Student, self).func1()
        # 调用指定父类的方法
        School.func1(self)
        super(Master, self).func1()

        # 子类的逻辑
        print("会用戏腔唱流行歌曲。。。。")

xiaogang = Student('小刚', "0001")
print(xiaogang.num)
# xiaogang.func1()
print(Student.mro())